package com.sgb.kjwl.view.ui.adapter.transport;

import android.content.Context;

import com.sgb.kjwl.R;
import com.sgb.kjwl.databinding.ItemManageTabListBinding;
import com.sgb.link.entity.PickFilterEntity;
import com.sgb.kjwl.view.ui.adapter.YoungBaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class HomeManageTabAdapter extends YoungBaseRecycleAdapter<PickFilterEntity> {

    public HomeManageTabAdapter(Context context, List<PickFilterEntity> data) {
        super(context, R.layout.item_manage_tab_list, data);
    }

    @Override
    public void convert(ItemViewHolder holder, PickFilterEntity entity) {
        ItemManageTabListBinding mBinding= (ItemManageTabListBinding) holder.getmBinding();
        mBinding.ivManageTabName.setBackgroundResource(entity.getIconResourceID());

    }
}
